// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/** 批发退库 POST /fds/wholesale/addReturnsWholesale */
export async function addReturnsWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addReturnsWholesaleUsingPOSTParams,
  body: API.__5[],
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_62>('/fds/wholesale/addReturnsWholesale', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}

/** 批发出库 POST /fds/wholesale/addWholesale */
export async function addWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addWholesaleUsingPOSTParams,
  body: API.__5[],
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_62>('/fds/wholesale/addWholesale', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}

/** 大批量批发出库 POST /fds/wholesale/addWholesaleAbundance */
export async function addWholesaleAbundanceUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addWholesaleAbundanceUsingPOSTParams,
  body: API.__4[],
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_62>('/fds/wholesale/addWholesaleAbundance', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}

/** 追加批发退库记录 POST /fds/wholesale/appendReturnsWholesale */
export async function appendReturnsWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.appendReturnsWholesaleUsingPOSTParams,
  body: API.Pinyin_63[],
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_62>('/fds/wholesale/appendReturnsWholesale', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}

/** 追加批发记录 POST /fds/wholesale/appendWholesale */
export async function appendWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.appendWholesaleUsingPOSTParams,
  body: API.Pinyin_63[],
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_62>('/fds/wholesale/appendWholesale', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}

/** 审核批发 POST /fds/wholesale/checkWholesale */
export async function checkWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.checkWholesaleUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/wholesale/checkWholesale', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出批发记录详情列表 POST /fds/wholesale/exportWhDetail */
export async function exportWhDetailUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportWhDetailUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/wholesale/exportWhDetail', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出批发记录列表 POST /fds/wholesale/exportWholesale */
export async function exportLosDetailUsingPOST5(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportLosDetailUsingPOST5Params,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/wholesale/exportWholesale', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 商品名统计 GET /fds/wholesale/getGoodsList */
export async function getGoodsListUsingGET1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getGoodsListUsingGET1Params,
  options?: { [key: string]: any },
) {
  return request<API.PageResult__2>('/fds/wholesale/getGoodsList', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 通过串码1获取库存信息 GET /fds/wholesale/getInventoryList */
export async function getInventoryListUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getInventoryListUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult31>('/fds/wholesale/getInventoryList', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 通过串码1模糊查询库存信息 GET /fds/wholesale/getInventoryListByPhoneCde */
export async function getInventoryListByPhoneCdeUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getInventoryListByPhoneCdeUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult31>('/fds/wholesale/getInventoryListByPhoneCde', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取批发记录详情列表 POST /fds/wholesale/getWhDetailList */
export async function getWhDetailListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getWhDetailListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultWhDetailDto_>('/fds/wholesale/getWhDetailList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取批发记录信息 GET /fds/wholesale/getWholesale */
export async function getWholesaleUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getWholesaleUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.WholesaleDto>('/fds/wholesale/getWholesale', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取已批发出库的库存商品列表 GET /fds/wholesale/getWholesaleInventoryList */
export async function getWholesaleInventoryListUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getWholesaleInventoryListUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult31>('/fds/wholesale/getWholesaleInventoryList', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取批发记录列表 POST /fds/wholesale/getWholesaleList */
export async function getWholesaleListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getWholesaleListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultWholesaleDto_>('/fds/wholesale/getWholesaleList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 撤销批发退库记录 POST /fds/wholesale/revokeReturnsWholesale */
export async function revokeReturnsWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.revokeReturnsWholesaleUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/wholesale/revokeReturnsWholesale', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 撤销入库批发记录信息 POST /fds/wholesale/revokeWholesale */
export async function revokeWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.revokeWholesaleUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/wholesale/revokeWholesale', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 反审核批发 POST /fds/wholesale/unCheckWholesale */
export async function unCheckWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.unCheckWholesaleUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/wholesale/unCheckWholesale', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 修改批发记录信息 POST /fds/wholesale/updateWholesale */
export async function updateWholesaleUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateWholesaleUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_62>('/fds/wholesale/updateWholesale', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 批发记录详情汇总 POST /fds/wholesale/whDetailSummary */
export async function whDetailSummaryUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.whDetailSummaryUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultWhDetailSmyDto_>('/fds/wholesale/whDetailSummary', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
